package edu.core.testapp.shared;

import java.io.Serializable;

public class ElGamalKeyHolder implements Serializable{
	
	private OpenKey openKey;
	private CloseKey closeKey;
	
	public ElGamalKeyHolder() { 
	}
	
	public ElGamalKeyHolder(OpenKey openKey, CloseKey closeKey) {
		
		this.openKey = openKey;
		this.closeKey = closeKey;
		
	}
	
	public OpenKey getOpenKey() {
		return openKey;
	}

	public CloseKey getCloseKey() {
		return closeKey;
	}

	public static class OpenKey implements Serializable {
		
		private String p;
		private String g;
		private String y;
		
		public OpenKey() {
			super();
		}

		public OpenKey(String p, String g, String y) {
			
			this.p = p;
			this.g = g;
			this.y = y;
			
		}

		public String getP() {
			return p;
		}

		public String getG() {
			return g;
		}

		public String getY() {
			return y;
		}
	}
	
	public static class CloseKey implements Serializable {
		
		private String x;
		
		public CloseKey() {
			super();
		}

		public CloseKey(String x) {
			
			this.x = x;
			
		}

		public String getX() {
			return x;
		}
	}

}
